home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / lib / AssocInt.h < prev    next >
C/C++ Source or Header  |  1990-05-19  |  1KB  |  45 lines

  1. #ifndef    ASSOCINT_H
  2. #define    ASSOCINT_H
  3.  
  4. /*$Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/lib/RCS/AssocInt.h,v 3.0 90/05/20 00:19:05 kgorlen Rel $*/
  5.  
  6. /* AssocInt.h -- declarations for key-Integer association
  7.  
  8.     THIS SOFTWARE FITS THE DESCRIPTION IN THE U.S. COPYRIGHT ACT OF A
  9.     "UNITED STATES GOVERNMENT WORK".  IT WAS WRITTEN AS A PART OF THE
  10.     AUTHOR'S OFFICIAL DUTIES AS A GOVERNMENT EMPLOYEE.  THIS MEANS IT
  11.     CANNOT BE COPYRIGHTED.  THIS SOFTWARE IS FREELY AVAILABLE TO THE
  12.     PUBLIC FOR USE WITHOUT A COPYRIGHT NOTICE, AND THERE ARE NO
  13.     RESTRICTIONS ON ITS USE, NOW OR SUBSEQUENTLY.
  14.  
  15. Author:
  16.     K. E. Gorlen
  17.     Computer Systems Laboratory, DCRT
  18.     National Institutes of Health
  19.     Bethesda, MD 20892
  20.  
  21. $Log:    AssocInt.h,v $
  22.  * Revision 3.0  90/05/20  00:19:05  kgorlen
  23.  * Release for 1st edition.
  24.  * 
  25. */
  26.  
  27. #include "LookupKey.h"
  28. #include "Integer.h"
  29.  
  30. class AssocInt: public LookupKey {
  31.     DECLARE_MEMBERS(AssocInt);
  32.     Integer avalue;
  33. protected:        // storer() functions for object I/O
  34.     virtual void storer(OIOofd&) const;
  35.     virtual void storer(OIOout&) const;
  36. public:
  37.     AssocInt(Object& newKey =*nil, int newValue =0);
  38.     virtual void deepenShallowCopy();
  39.     virtual Object* value();
  40.     virtual const Object* value() const;
  41.     virtual Object* value(Object& newValue);
  42. };
  43.  
  44. #endif
  45.